package top.infopub.mgr.mkt.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

import top.infopub.generic.GenericDao;
import top.infopub.model.mkt.StandardSub;


/** 底线标准_地区标准明细(MKT_STANDARD_SUB) **/
public interface StandardSubDao extends GenericDao<StandardSub, String> {

    /**
     * 根据条件查询底线标准
     * @return
     * @see
     */
    Page<StandardSub> selectByDomainWhere(StandardSub StandardSub);



    /**
     * 新增底线标准
     * @see
     */
    void insertById(StandardSub StandardSub);

    /**
     * 根据底线标准id查询详情
     * @param id 主键id
     * @return
     * @see
     */
    StandardSub selectById(String id);

    /**
	 * 根据底线标准查询标准明细
	 * @author andySayh
	 * @Title: selectByLineId
	 * @Description: TODO
	 * @param baseLineId
	 * @return
	 * @return List<StandardSub>
	 * @throws
	 */
	List<StandardSub> selectByLineId(String baseLineId);
	
	/**
	 * 批量插入记录
	 * @author andySayh
	 * @Title: insertByBatch
	 * @Description: TODO
	 * @param standardSubs
	 * @return void
	 * @throws
	 */
    void insertByBatch(@Param("list") List<StandardSub> standardSubs);
    
    /**
     * 根据底线标准删除底线明细
     * @author andySayh
     * @Title: deleteByBaseLineId
     * @Description: TODO
     * @param baseLineId
     * @return void
     * @throws
     */
    void deleteByBaseLineId(String baseLineId);

}
